package powerControl.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	private String uuid;
	private String name;
	private Boolean state;
	private Long orderId;
	private String parentId;
	private Date createTime;
	private String creatorId;
	private String description;
	private String remark;
	private Set roleResourceRelations = new HashSet(0);
	private Set userRoleRelations = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** minimal constructor */
	public Role(String name, Boolean state) {
		this.name = name;
		this.state = state;
	}

	/** full constructor */
	public Role(String name, Boolean state, Long orderId, String parentId,
			Date createTime, String creatorId, String description,
			String remark, Set roleResourceRelations, Set userRoleRelations) {
		this.name = name;
		this.state = state;
		this.orderId = orderId;
		this.parentId = parentId;
		this.createTime = createTime;
		this.creatorId = creatorId;
		this.description = description;
		this.remark = remark;
		this.roleResourceRelations = roleResourceRelations;
		this.userRoleRelations = userRoleRelations;
	}

	// Property accessors

	public String getUuid() {
		return this.uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getState() {
		return this.state;
	}

	public void setState(Boolean state) {
		this.state = state;
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getParentId() {
		return this.parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreatorId() {
		return this.creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set getRoleResourceRelations() {
		return this.roleResourceRelations;
	}

	public void setRoleResourceRelations(Set roleResourceRelations) {
		this.roleResourceRelations = roleResourceRelations;
	}

	public Set getUserRoleRelations() {
		return this.userRoleRelations;
	}

	public void setUserRoleRelations(Set userRoleRelations) {
		this.userRoleRelations = userRoleRelations;
	}

}